/*
 * Copyright 2017-2020 The ShadowEditor Authors. All rights reserved.
 *
 * Use of this source code is governed by a MIT-style
 * license that can be found in the LICENSE file.
 * 
 * For more information, please visit: https://github.com/tengge1/ShadowEditor
 * You can also visit: https://gitee.com/tengge1/ShadowEditor
 */
import PropTypes from 'prop-types';

/**
 * 将SVG组件包裹起来
 */
class Wrapper extends React.Component {
    render() {
        const { children, ...others } = this.props;
        // eslint-disable-next-line
        return <React.Fragment {...others}>{children}</React.Fragment>;
    }
}

Wrapper.propTypes = {
    children: PropTypes.node
};

Wrapper.defaultProps = {
    children: null
};

export default Wrapper;